package com.dao;

import com.model.BrowRecored;

import java.util.List;

public interface BrowRecoredMapper {
    int deleteByPrimaryKey(Integer browRecoredId);

    int insert(BrowRecored record);

    int insertSelective(BrowRecored record);

    BrowRecored selectByPrimaryKey(Integer browRecoredId);

    int updateByPrimaryKeySelective(BrowRecored record);

    int updateByPrimaryKey(BrowRecored record);



    //查询待处理的借书记录
    List<BrowRecored> queryForBrowList();
    //查询用户自己的历史借阅记录
    List<BrowRecored> queryBeforeBrowBookListByUserId(int userId);
    //查询当前和历史借阅记录
    List<BrowRecored> queryNowAndBeforeBrowList();



    //汪林

    //查询还书页面的数据
    List<BrowRecored> queryNowBrowListByUserId(Integer userId);

    List<BrowRecored> queryHandleListByUserId(Integer userId);

    List<BrowRecored> queryNowBrowList();
}